﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PHTShop.admin
{
    public partial class Admin : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["admin"] == null)
            {
                Response.Redirect("Default.aspx");
            }
            else
                lblAdminName.InnerHtml = ((Account)Session["admin"]).fullname;
        }
        protected void lbtnLogout_Click(object sender, EventArgs e)
        {
            Session.Remove("admin");
            Response.Redirect("Default.aspx");
        }
    }
}